﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RenewControl.ascx.cs" Inherits="Sicurezza.CA.Server.Controlli.RenewControl1" %>

<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
    <asp:View ID="View1" runat="server">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
            onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" 
            onrowdeleting="GridView1_RowDeleting" CellPadding="10" ForeColor="#333333" 
            GridLines="None">
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
                <asp:BoundField DataField="Subject" HeaderText="Subject" 
                    SortExpression="Subject" />
                <asp:BoundField DataField="Timestamp" HeaderText="Timestamp" 
                    SortExpression="Timestamp" />
                <asp:ButtonField CommandName="Edit" Text="View" />
                <asp:ButtonField CommandName="Update" Text="Accept" />
                <asp:ButtonField CommandName="Delete" Text="Reject" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </asp:View>
    <asp:View ID="View4" runat="server">
        <asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="Back" />
        <asp:Button ID="Button5" runat="server" onclick="Button5_Click" Text="Reject" />
        <br />
        <asp:Label ID="Label2" runat="server" Text="Reason"></asp:Label>
        <br />
        <asp:TextBox ID="Reasontxt" runat="server" Height="98px" TextMode="MultiLine" 
            Width="270px"></asp:TextBox>
    </asp:View>
    <asp:View ID="View3" runat="server">
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Back" />
        <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Accept" />
        <br />
        <asp:Label ID="Label1" runat="server" Text="Validity (days)"></asp:Label>
        <asp:TextBox ID="daystxt" runat="server"></asp:TextBox>
    </asp:View>
    <asp:View ID="View2" runat="server">
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Back" />
        <br />
        <asp:TextBox ID="TextBox1" runat="server" Height="523px" TextMode="MultiLine" 
            Width="761px"></asp:TextBox>
    </asp:View>
</asp:MultiView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="GetWaiting" TypeName="Sicurezza.CA.Manager.RenewManager">
</asp:ObjectDataSource>
